package Server.Tasks;
import Server.PhoneServerThread;
import Server.PhoneServer;

public class NewPhoneTask extends ServerTask {

	private PhoneServer server;

	public NewPhoneTask(PhoneServerThread p, int priority, String d, PhoneServer server)
	{
		super(p, priority, d);
		this.server = server;
	}

	public void ProcessTask()
	{
		phone.setPhoneName(data);
		server.checkPhone(phone);
		server.getPhoneInfo(phone);
	}
}
